<?php

class MembershipFeeMassPaymentYearSelectionForm extends BaseForm {
  
  public function configure() {
		parent::configure();
		
		$values = array();
		foreach(range(date("Y")-1, date("Y")+1) as $year) {
		  $values[$year] = $year;
		}
		
		$this->widgetSchema['year'] = new sfWidgetFormChoice(array(
		  'choices' => $values));
		
		$this->widgetSchema->setNameFormat('membership_fee_mass_payment_year_selection[%s]');
  }
}